package engine.systems.group
{
	import ash.core.Component;
	import ash.core.Entity;
	
	import flash.utils.Dictionary;

	public class Children extends Component
	{
		public var children:Vector.<Entity> = new Vector.<Entity>();
		
		public function Children() { }
		
		override public function destroy():void
		{
			this.children = null;
		}
		
		public function getChildByName(name:String):Entity
		{
			for each(var entity:Entity in this.children)
			{
				if(entity.name == name) return entity;
			}
			
			return null;
		}
	}
}